package com.hilon.base.service;

import com.hilon.segment.mybatis.utils.ResultBean;

import java.util.List;

public interface EntityHandleService<T> {

    ResultBean<List<T>> findAll();

    ResultBean<List<T>> listEntityByCondition(T entity);

    ResultBean<Void> saveEntity(T entity);
    public ResultBean<Void> saveAll(List<T> entities);

    ResultBean<Void> updateEntity(Long id, T entity);

    ResultBean<Void> deleteBatchEntityById(List<Long> idList);


}